/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author TQNINH
 */
public class AccountManager {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here        
        CustomerAccount acc1 = new CustomerAccount("Fixed", "ACC001", 5000);
        CustomerAccount acc2 = new CustomerAccount("Fixed", "ACC002", 7000);
        
        //acc1.displayDetails();
        //acc2.displayDetails();
        //System.out.println("Total: " + (acc1.getBanlance() + acc2.getBanlance()));
        
        TransferManager tf1 = new TransferManager(acc1, acc2, 800);
        TransferManager tf2 = new TransferManager(acc1, acc2, 900);
        
        Thread th1 = new Thread(tf1);
        Thread th2 = new Thread(tf2);
        
        th1.start();
        th2.start();
        
        //acc1.displayDetails();
        //acc2.displayDetails();
        //System.out.println("Total: " + (acc1.getBanlance() + acc2.getBanlance()));
    }
}
